import Vue from 'vue'
import Router from 'vue-router'
import Login from '../pages/login/index.vue'
import Chat from '../pages/chat/index.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '*',
      redirect: '/login'
    },
    {
      path: '/',
      redirect: '/login'
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/chat',
      name: 'chat',
      component: Chat
    },
  ]
})
